//
//  SUrlDeploy.m
//  LSNets
//
//  Created by Samuel on 7/8/15.
//
//

#import "SUrlDeploy.h"
#import "SUrlBase.h"
@implementation SUrlDeploy
+ (void)settingUrls:(SUrlDeploy_Url)urlStyle;
{
    if (urlStyle) {
        [[NSUserDefaults standardUserDefaults]setObject:[SUrlDeploy defaultUrlSetting:urlStyle] forKey:@"SUrlDeploySettingUrls"];
    }
}
+ (NSString*)getSettingUrls;
{
    return ([[NSUserDefaults standardUserDefaults]objectForKey:@"SUrlDeploySettingUrls"])?[[NSUserDefaults standardUserDefaults]objectForKey:@"SUrlDeploySettingUrls"]:[SUrlDeploy defaultUrlSetting:100];
}




+ (NSString*)defaultUrlSetting:(SUrlDeploy_Url)sUrlDeploy_Url;
{
    switch (sUrlDeploy_Url) {
        case SUrlDeploy_Url_Publish:
            return URLPUBLISH;
            break;
        case SUrlDeploy_Url_Clone:
            return URLCLONE;
            break;
        case SUrlDeploy_Url_Test:
            return URLTEST;
            break;
        case SUrlDeploy_Url_Others:
            return URLOTHERS;
            break;
        default:
            return URLPUBLISH;
            break;
    }
}




@end
